//
//  FPdirectorTableViewCell.m
//  FilmParadise
//
//  Created by lanou3g on 15/7/21.
//  Copyright (c) 2015年 DLYgroup. All rights reserved.
//

#import "FPdirectorTableViewCell.h"

@implementation FPdirectorTableViewCell
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        UILabel *allDirlabel = [[UILabel alloc]initWithFrame:CGRectMake(kImageW(10), kImageH(5), kImageW(150), kImageH(30))];
        allDirlabel.text = @"全部演职员表:";
        allDirlabel.font = [UIFont systemFontOfSize:18];
        [self.contentView addSubview:allDirlabel];
        
        UIView *lineView1 = [[UIView alloc]initWithFrame:CGRectMake(allDirlabel.x, allDirlabel.y + allDirlabel.height + kImageH(5), kScreenWidth - kImageW(20), kImageH(2))];
        lineView1.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:lineView1];
        
        UILabel *dirlbl = [[UILabel alloc]initWithFrame:CGRectMake(allDirlabel.x, lineView1.y + kImageH(5), kImageW(50), kImageH(20))];
        dirlbl.text = @"导演";
        dirlbl.textColor = [UIColor colorWithRed:0.189 green:0.333 blue:0.349 alpha:1.000];
        [self.contentView addSubview:dirlbl];
        
        UILabel *actlbl = [[UILabel alloc]initWithFrame:CGRectMake(dirlbl.x + kImageW(130), dirlbl.y, kImageW(120), dirlbl.height)];
        actlbl.text = @"主要演员";
        actlbl.textColor = [UIColor colorWithRed:0.080 green:0.342 blue:0.359 alpha:1.000];
        [self.contentView addSubview:actlbl];
        
        
        self.directorImage = [[UIImageView alloc]initWithFrame:CGRectMake(kImageW(10), kImageH(70), kImageW(120), kImageH(180))];
        self.directorImage.backgroundColor = [UIColor redColor];
        [self.contentView addSubview:_directorImage];
        
        self.actor1image = [[UIImageView alloc]initWithFrame:CGRectMake(_directorImage.x + _directorImage.width + kImageW(15), _directorImage.y, kImageW(100), kImageH(130))];
        [self.contentView addSubview:_actor1image];
        
        self.actor1Namelbl = [[UILabel alloc]initWithFrame:CGRectMake(_actor1image.x, _actor1image.y + _actor1image.height + kImageH(20), _actor1image.width, kImageH(20))];
        _actor1Namelbl.textAlignment = 1;
        [self.contentView addSubview:_actor1Namelbl];
        
        self.actor1RoleImage = [[UIImageView alloc]initWithFrame:CGRectMake(_actor1Namelbl.x + kImageW(20), _actor1Namelbl.y + _actor1Namelbl.height + kImageH(10), kImageW(60), kImageH(60))];
        self.actor1RoleImage.layer.masksToBounds = YES;
        _actor1RoleImage.layer.cornerRadius = 30;
        [self.contentView addSubview:_actor1RoleImage];
        
        self.personate1Name = [[UILabel alloc]initWithFrame:CGRectMake(_actor1image.x, _actor1RoleImage.y + _actor1RoleImage.height + kImageH(10), _actor1image.width , kImageH(20))];
        self.personate1Name.textAlignment = 1;
        [self.contentView addSubview:_personate1Name];
        
        
        
        
        
        self.actor2image = [[UIImageView alloc]initWithFrame:CGRectMake(_actor1image.x + _actor1image.width +kImageW(10), _actor1image.y, kImageW(100), kImageH(130))];
        [self.contentView addSubview:_actor2image];
        
        self.actor2Namelbl = [[UILabel alloc]initWithFrame:CGRectMake(_actor2image.x , _actor2image.y + _actor2image.height + kImageH(20), _actor2image.width , kImageH(20))];
        _actor2Namelbl.textAlignment = 1;
        [self.contentView addSubview:_actor2Namelbl];
        
        self.actor2RoleImage = [[UIImageView alloc]initWithFrame:CGRectMake(_actor2Namelbl.x + kImageW(20), _actor2Namelbl.y + _actor2Namelbl.height + kImageH(10), kImageW(60), kImageH(60))];
        _actor2RoleImage.layer.masksToBounds = YES;
        _actor2RoleImage.layer.cornerRadius = 30;
        [self.contentView addSubview:_actor2RoleImage];
        
        self.personate2Name = [[UILabel alloc]initWithFrame:CGRectMake(_actor2image.x, _actor2RoleImage.y + _actor2RoleImage.height +kImageH(10), _actor2image.width , kImageH(20))];
        self.personate2Name.textAlignment = 1;
        [self.contentView addSubview:_personate2Name];
        
        self.directorNamelbl = [[UILabel alloc]initWithFrame:CGRectMake(_directorImage.x, _directorImage.y + _directorImage.height, _directorImage.width, kImageH(20))];
        [self.contentView addSubview:_directorNamelbl];
        
        self.directorENlbl = [[UILabel alloc]initWithFrame:CGRectMake(_directorNamelbl.x, _directorNamelbl.y + _directorNamelbl.height, _directorNamelbl.width, kImageH(20))];
        
        [self.contentView addSubview:_directorENlbl];
        
        UIView *lineView2 = [[UIView alloc]initWithFrame:CGRectMake(_directorImage.x + _directorImage.width + kImageW(5), _directorImage.y, kImageW(1), _directorImage.height + kImageH(50))];
        lineView2.backgroundColor = [UIColor grayColor];
        [self.contentView addSubview:lineView2];
        
        UILabel *productlbl = [[UILabel alloc]initWithFrame:CGRectMake(_directorENlbl.x, _directorENlbl.y + _directorENlbl.height + kImageH(10), kImageW(60), kImageH(20))];
        productlbl.text = @"制片人:";
        [self.contentView addSubview:productlbl];
        
        self.productor1Namelbl = [[UILabel alloc]initWithFrame:CGRectMake(productlbl.x + productlbl.width, productlbl.y, kImageW(150), kImageH(20))];
        self.productor1Namelbl.font = [UIFont systemFontOfSize:15];
        self.productor1Namelbl.textAlignment = 0;
        [self.contentView addSubview:_productor1Namelbl];
        
        UILabel *writerlbl = [[UILabel alloc]initWithFrame:CGRectMake(productlbl.x, productlbl.y + productlbl.height + kImageH(5), kImageW(50), kImageH(20))];
        writerlbl.text = @"编剧:";
        [self.contentView addSubview:writerlbl];
        
        self.writer1Namelbl = [[UILabel alloc]initWithFrame:CGRectMake(writerlbl.x + writerlbl.width, writerlbl.y, kImageW(150), kImageH(20))];
        self.writer1Namelbl.font = [UIFont systemFontOfSize:15];
        self.writer1Namelbl.textAlignment = 0;
        [self.contentView addSubview:_writer1Namelbl];
        
        
        
        
        
        
        
        
        
    }
    return self;
}







- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
